import getEnumsManager from '@/common/enum';

export const MenuStatusEnum = getEnumsManager([
  { value: '1', text: '正常', default: true, name: 'Normal' },
  { value: '0', text: '停用', name: 'Deactivate' }
]);

export const DictDefaultEnum = getEnumsManager([
  { value: '1', text: '是', default: true, name: 'Yes' },
  { value: '0', text: '否', name: 'No' }
]);

export const DictRoleLevelEnum = getEnumsManager([
  { value: '0', text: '普通用户', default: true },
  { value: 'X', text: '普通管理员' },
  { value: 'Y', text: '高级管理员' },
  { value: 'Z', text: '超级管理员' }
]);

export const DictRoleTypeEnum = getEnumsManager([
  { value: '0', text: '系统级', default: true },
  { value: '1', text: '功能级' },
  { value: '2', text: '自定义' }
]);

export const EnabledStateEnum = getEnumsManager([
  { value: '1', text: '启用', name: 'Enable' },
  { value: '0', text: '禁用', name: 'Disabled' }
]);

export const UserStatusEnum = getEnumsManager([
  { value: '1', text: '启用', name: 'Enable' },
  { value: '0', text: '禁用', name: 'Disabled' },
  { value: '5', text: '死亡', name: 'Diead' },
  { value: '6', text: '出党', name: 'Quit' },
  { value: '7', text: '停止党籍', name: 'STOP' },
  { value: '8', text: '锁定', name: 'Lock' },
  { value: '9', text: '删除', name: 'Delete' }
]);

export const UserTypeEnum = getEnumsManager([
  { value: '1', text: '正式用户', name: 'Formal' },
  { value: '0', text: '虚拟用户', name: 'Fictitious' }
]);

export const ProcessHandleEnum = getEnumsManager([
  { value: '0', text: '草稿', name: 'Draft' },
  { value: '2', text: '审批中', name: 'Audit' },
  { value: '3', text: '驳回申请', name: 'Overrule' },
  { value: '4', text: '已办结', name: 'Completed' },
  { value: '8', text: '已作废', name: 'Void' },
  { value: '9', text: '已删除', name: 'Delete' }
]);
export const IsReadEnum = getEnumsManager([
  { value: '0', text: '未读', name: 'UnRead' },
  { value: '1', text: '已读', name: 'Read' }
]);
